package com.mubei.seckill.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author 帅小伙
 * @date 2022/2/18
 * @description
 * 自定义手机格式校验注解
 */
@Target({ElementType.METHOD,ElementType.FIELD,ElementType.ANNOTATION_TYPE,ElementType.CONSTRUCTOR,ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented

public @interface IsMobile {

    boolean required() default true;

    String message() default "手机号码不对";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payloads() default {};


}
